﻿<%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" CodeBehind="GuiBaiMoiDienDan.aspx.cs" Inherits="WebHousingInfo.GuiBaiMoiDienDan" %>

<%@ Register Src="~/Controls/Header.ascx" TagName="HD" TagPrefix="Header" %>
<%@ Register Src="~/Controls/MenuFooter.ascx" TagName="MN" TagPrefix="MenuFooter" %>
<%@ Register Src="~/Controls/Footer.ascx" TagName="FT" TagPrefix="Footer" %>
<%@ Register Src="~/Controls/NoiThat.ascx" TagName="NT" TagPrefix="NoiThat" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>Đăng bài viết</title>
</head>
<body>
    <form id="form1" runat="server">
    <div id="uni_wrapper">
    <script language="javascript" type="text/javascript">
    function goback()
    {
        history.back([-1]);
    }
    </script>

        <Header:HD ID="Header" runat="server" />
        <div id="uni_main">
            <div id="content" class="clearfix">
            <div id="group_750_l">
            <% string modecategory = Request.QueryString["categoryid"];
           int idcategory = Convert.ToInt32(modecategory);
           var objectCategory = HousingInfo.Library.SubTopicForumBO.GetSubTopicForumBO(idcategory);
           var objectCate_Parrent = HousingInfo.Library.CategoryBO.GetCategoryBO(Convert.ToInt32(objectCategory.CategoryID));  
             %>
			<div class="clearfix" id="ketquatimkiem">
				<div class="box02_title">
					<table cellspacing="5" cellpadding="1" border="0">
						<tbody>
						    <tr valign="bottom">
							    <td><a href="#">
								    <img border="0" title="Go Back" src="Admin/img/navbits_start.gif" alt="Go Back"></a>
							    </td>
							    <td>&nbsp;</td>
							    <td width="100%">
								    <span class="navbar"><a href="#" accesskey="1">Diễn đàn nhà đất</a></span>   
								    <span class="navbar">&gt; 
								    <a href="#"><%=objectCate_Parrent.CategoryName%></a></span> 
							    </td>
						    </tr>
						    <tr>
							    <td class="navbar" style="font-size: 10pt; padding-top: 1px;" colspan="3">
								    <img border="0" title="Xem Thống Kê Mới" class="inlineimg" src="Admin/img/navbits_finallink_ltr.gif" alt="Xem Thống Kê Mới">
								    <strong><%=objectCategory.SubTopicForumName%></strong>
							    </td>
						    </tr>
					    </tbody>
					</table>
				</div>
			</div>
			<div class="clearfix" id="ketquatimkiem">
                <div>
                    <asp:Label ID="lbltieude" runat="server" Text="Chủ đề: "></asp:Label>
                </div>
                <div style="margin-top:5px;">
                    <asp:TextBox ID="txttieude" Width="98%" Height="24px" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="txttieude" ErrorMessage="?"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator6" runat="server" 
                                ControlToValidate="txttieude" ErrorMessage="    Độ dài tối thiểu &gt; 2 và tối đa là 100" 
                                ValidationExpression="^([\S\s]{3,100})$"></asp:RegularExpressionValidator>
                </div>
                <div>
                    <asp:Label ID="lblnoidung" runat="server" Text="Bài viết: "></asp:Label>
                </div>
                <script type="text/javascript" src="../ckeditor/ckeditor.js"></script>
                        <script type="text/javascript">
                            window.onload = function () {
                                CKEDITOR.replace('txtnoidung');
                            }
                        </script>
                <div style="width:98%; margin-top:5px;">
                    <asp:TextBox ID="txtnoidung" runat="server" TextMode="MultiLine" ></asp:TextBox>
                </div>	
                <div style="margin:5px; margin-right:15px; text-align:right;">
		            <span>
                        <asp:Button ID="btndangtin" runat="server" Text="Gửi đề tài mới" 
                            onclick="btndangtin_Click" CausesValidation="True" />
                         <input id="Button1" type="button" value="&lt;&lt; Quay Lại"  onclick = "goback()"/>
                    </span> 
		        </div>		
			</div>
		</div>
		        <div id="group_5">
			        <div id="menu_nhadat">	  
				        <div class="title">NHÀ ĐẤT CHO THUÊ</div>
				        <div class="content">
					        <ul>
						        <li><a href="#">Nhà - Biệt thự - Phòng</a></li>
						        <li><a href="#">Cao ốc - Văn phòng</a></li>
						        <li><a href="#">Chung cư</a></li>
						        <li><a href="#">Kho - Xưởng - BĐS Khác</a></li>
					        </ul>
				        </div>				
				        <div class="footer"></div>
			        </div>
			        <NoiThat:NT ID="NoiThat" runat="server" />
		        </div>
            </div>
        </div>
         <MenuFooter:MN ID="MenuFooter" runat="server" />
         <Footer:FT ID="Footer" runat="server" />
    </div>
    </form>
</body>
</html>
